package org.csmzxy.class2333;

public class MyRunnable01 implements Runnable{
    public void run(){
        //循环输出当前线程的名称
        while (true){
            System.out.println(Thread.currentThread().getName() + "run()方法在运行");
            try {
                Thread.sleep(1000);
            }catch (InterruptedException e){
                e.printStackTrace();
            }
        }
    }
}
